Add crash-recoverable catalog snapshot and apply - #113
Merged
schickling-assistant merged 2 commits intoAug 1, 2026
Merged
Conversation
schickling-assistant
force-pushed
the
schickling-assistant/2026-07-30-catalog-snapshot-apply
branch
from
July 31, 2026 00:03
d85e72f to
962ceb0
Compare
schickling-assistant
force-pushed
the
schickling-assistant/2026-07-30-catalog-publication
branch
from
August 1, 2026 09:56
57bb745 to
7e1bd02
Compare
agent-session-id: ed878dac-3735-4276-b3e0-ea1b1cd65291 agent-tool: Codex CLI agent-tool-version: 0.145.0 agent-model: unknown agent-runtime-profile: /nix/store/mnx8agbdq3wiyb6vz63lhgscgazkrn98-coding-agent-runtime-profile/share/coding-agents/profile.json agent-skills-manifest: /nix/store/5r69m9k2llmri3na81518zx0a7y0d3cn-agent-skills-corpus/share/agent-skills/manifest.json tooling-profile: dotfiles@0fb7e03
agent-session-id: ed878dac-3735-4276-b3e0-ea1b1cd65291 agent-tool: Codex CLI agent-tool-version: 0.145.0 agent-model: unknown agent-runtime-profile: /nix/store/mnx8agbdq3wiyb6vz63lhgscgazkrn98-coding-agent-runtime-profile/share/coding-agents/profile.json agent-skills-manifest: /nix/store/5r69m9k2llmri3na81518zx0a7y0d3cn-agent-skills-corpus/share/agent-skills/manifest.json tooling-profile: dotfiles@0fb7e03
schickling-assistant
force-pushed
the
schickling-assistant/2026-07-30-catalog-snapshot-apply
branch
from
August 1, 2026 11:28
962ceb0 to
7347816
Compare
schickling-assistant
changed the base branch from
schickling-assistant/2026-07-30-catalog-publication
to
main
August 1, 2026 11:29
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
.st2control plane and publish through no-follow directory capabilitiesContract
st2 catalog snapshot --output DIR [--json]st2 catalog apply --prepared DIR --expect-sha256 HEX [--json]st2 catalog apply --resume [--json]st2 agent digest (--spec FILE | --bundle DIR) [--json]st2 agent publish ... --input-sha256 HEXApply has exactly two closed modes: a new prepared hash-CAS transaction or marker-authorized resume. A durable apply marker protects whole-catalog recovery. Each declaration writer also creates a durable generation intent before mutation; shared readers fail closed on it, and the next exclusive writer conservatively advances the generation and clears an orphan intent.
State traffic remains unlocked. During apply, routing uses the validated original-agent/current-spec union, coherent
generation -> marker -> generationsampling, and retained component directory capabilities. No state or declaration mutation follows swapped path ancestors.Verification
cargo check --testsgit diff --check.st2and declaration ancestor swaps, leaf and identity EXDEV/resume, marker-clear address fencing, and marker-time message/status/context/resource mutationsThis now targets
mainafter #106 merged.